import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'

interface DataType {
    name: string;
    merchant: string,
    phone: string;
    address: string;
}
@Schema()
export class Merchant {
    @Prop()
    name: string // 商户名称
    @Prop()
    phone: string // 商户电话
    @Prop()
    code: string // 商户编码
    @Prop()
    merchant:string // 所属商户
    @Prop()
    address:string // 商户地址
    @Prop()
    uploadUrl:string //商户上传地址
   

  
}


export const MerchantSchema = SchemaFactory.createForClass(Merchant)